package com.ny.dao;

import com.ny.entity.Product;
import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {
    public int add(Student student) throws SQLException;

    Student login(String studentName,String studentPassword) throws SQLException;
    public Student findById(int studentId) throws SQLException;
    //修改密码
    public int updatePassword(int studentId,String studentPassword) throws SQLException;
    //修改手机号
    public int updatePhone(int studentId,String studentPhone) throws SQLException;
    public List<Student> findAllStudent() throws SQLException;
    public int update(Student student) throws SQLException;
    public int delete(int studentId) throws SQLException;
}
